/*
 * definition.h
 *
 *  Created on: 2014. 12. 11.
 *      Author: SDS
 */

#ifndef DEFINITION_H_
#define DEFINITION_H_

// Configuration
#define MODECOUNT	(3)
#define MOVE		(0)
#define PERFORMANCE (1)
#define LEGCONTROL	(2)

#define EXIT		(-1)

// Motion
#define FORWARD		(2)
#define BACKWARD	(8)
#define LEFTWARD	(4)
#define RIGHTWARD	(6)
#define LFWARD		(1)
#define RFWARD		(3)
#define LBWARD		(7)
#define RBWARD		(9)
#define LCIRCLE		(0)
#define RCIRCLE		(11)

// Status
#define STANDUP		(11)
#define SEATDOWN		(11)

// Speed
#define IDLETIME	(4000L)
#define SLOWEST		(1000L)
#define SLOWER		(500L)
#define SLOW		(400L)
#define GENERAL		(300L)
#define FAST		(150L)
#define FASTER		(100L)
#define FASTEST		(50L)
int STATE, PRE_STATE = EXIT;

// Key Map
#define KEY_RED			(0)
#define KEY_BLUE		(1)
#define KEY_GREEN		(2)
#define KEY_ORANGE		(3)
#define KEY_PAD_UP		(4)
#define KEY_PAD_DOWN 	(5)
#define KEY_PAD_LEFT 	(6)
#define KEY_PAD_RIGHT 	(7)
#define KEY_RJ_UP		(8)
#define KEY_RJ_DOWN 	(9)
#define KEY_RJ_LEFT 	(10)
#define KEY_RJ_RIGHT 	(11)
#define KEY_LJ_UP		(12)
#define KEY_LJ_DOWN 	(13)
#define KEY_LJ_LEFT 	(14)
#define KEY_LJ_RIGHT 	(15)
#define KEY_START 		(16)
#define KEY_SELECT 		(17)
#define KEY_MODE 		(18)
#define KEY_SHOCK_LEFT 	(19)
#define KEY_SHOCK_RIGHT (20)

// Action Group Script
//[Movement]
#define AG000 ("") // Initial State
#define AG001 ("") //
#define AG002 ("") //
#define AG003 ("") //
#define AG004 ("") //
#define AG005 ("") //

//[Performance]
#define AG006 ("") // Forward Right Full Step
#define AG007 ("") // Forward Step 2

// Action Group Playtime
#define TAG000 (3000L) // Initial State
#define TAG001 () //
#define TAG002 () //
#define TAG003 () //
#define TAG004 () //
#define TAG005 () //
#define TAG006 () //
#define TAG007 () //


#endif /* DEFINITION_H_ */
